package com.zimin.cloud.user;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author zimin
 * 用户服务
 */
@EnableDiscoveryClient
@SpringBootApplication
@ComponentScan(basePackages= {"com.zimin"})
@EnableFeignClients(basePackages = {"com.zimin.cloud.*.api"})
//@EnableAsync  // @Async 在异步方法上添加此注解
public class UserApplication {

    public static void main(String[] args) {
        SpringApplication.run(UserApplication.class,args);
    }

}
